package com.system.service.Impl;

import com.system.entity.CourseInformation;
import com.system.dao.CourseInformationMapper;
import com.system.service.courseInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
@CrossOrigin
@Service
public class courseInformationServiceImpl implements courseInformationService {
    @Autowired
    CourseInformationMapper courseinformationMapper;

    @Override
    public List<CourseInformation> findByStudentId(Long id) {
    return courseinformationMapper.selectByStu_id(id);
    }

    @Override
    public CourseInformation selectByPrimaryKey(Integer courseId) {
        return courseinformationMapper.selectByPrimaryKey(courseId);
    }


}
